package controller

import (
	"context"
	"xr-game-server/core/httpserver"
	"xr-game-server/dto/bagdto"
	"xr-game-server/module/bag"
)

type Bag struct {
}

func initBag() {
	httpserver.RegAPI("/bag", new(Bag))
}

func (b *Bag) GetBag(ctx context.Context, req *bagdto.GetBagReq) (res *bagdto.GetBagRes, err error) {
	return bag.GetBag(ctx, req)
}

func (b *Bag) UseProp(ctx context.Context, req *bagdto.UsePropReq) (res *bagdto.UsePropRes, err error) {
	return bag.UseProp(ctx, req)
}

func (b *Bag) PushFullBag(ctx context.Context, req *bagdto.PushFullBagReq) (res *bagdto.PushFullBagRes, err error) {
	return nil, nil
}
func (b *Bag) PushBagVal(ctx context.Context, req *bagdto.PushBagReq) (res *bagdto.PushBagRes, err error) {
	return nil, nil
}
